package com.ybwh.springboot2.valid;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

public interface UnionFieldValidator<T> {

    Result valid(T objValue);


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    class Result {
        private boolean valid;
        private String message;

    }
}
